<template>
  <div>
      <div class="detail">
        <p>接收的query参数===={{$route.query.a}}===={{$route.query.b}}</p>
        <p>接收的params参数===={{$route.params.id}}===={{$route.params.name}}</p>
      </div>
  </div>
</template>

<script>
export default {
    name:'detial'

}
</script>

<style scoped lang="less">
.detail {
  width: 600px;
  height: 300px;
  background: skyblue;
   p{
    color: white;
    height: 40px;
  }
}
</style>